Leetcode 128 Longest Consecutive Sequence - Python Solution